<div class="form">

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'product-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>255)); ?>
	<?php echo $form->textFieldRow($model,'image',array('class'=>'span5','maxlength'=>255)); ?>
	<?php echo $form->textAreaRow($model,'teaser',array('class'=>'span5')); ?>
	<label>Mô tả chi tiết</label>
	<?php $this->widget('application.extensions.extckeditor.ExtCKEditor', array(
		'model'=>$model,
		'attribute'=>'description', // model atribute
		'editorTemplate'=>'full', // Toolbar settings (full, basic, advanced)
	)); ?>
	<?php echo $form->textFieldRow($model,'price',array('class'=>'span5','maxlength'=>255)); ?>
	<?php echo $form->dropDownListRow($model,'category',Product::model()->categories,array('class'=>'span5','maxlength'=>255)); ?>
	<?php echo $form->checkBoxRow($model,'hot'); ?>
	<?php echo $form->checkBoxRow($model,'recent'); ?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->